// import { uploadOss as uploadFile, deleteOss as deleteFile } from '@/common/api/uploadOss'
import { uploadFile, deleteFile } from '@/common/api/upload'

/**
 * OSS上传
 * @param {{
 *  file: File,
 *  dir: string,
 *  type: string | 0 | 1 | 2, // 0用文件名 1用tuid 2用guid string当作文件名
 *  progress: (e: any) => any
 * }} options
 */
export const uploadOss = async options => {
  return uploadFile(options)
}

/**
 * 删除
 * @param {string | string[]} url
 */
export const deleteOss = url => deleteFile(url)
